﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="jnagr.Web.Index" %>

<%@ Register Src="~/Controls/copyright.ascx" TagPrefix="uc1" TagName="copyright" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>农业信息服务平台</title>
    <link href="CSS/Index.css" rel="stylesheet" />
    <script src="Script/easyui/jquery.min.js"></script>
    <script src="Script/easyui/jquery.easyui.min.js"></script>
    <script src="Script/easyui/locale/easyui-lang-zh_CN.js"></script>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        html, body {
            height: 100%;
            width: 100%;
        }

        body {
            background: url("images/bg.jpg") fixed center center no-repeat;
            background-size: cover;
            width: 100%;
        }

        .bg {
            /*background: url(images/bg.jpg);
            filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
            -moz-background-size: 100% 100%;*/
            background-size: 100% 100%;
            /*height: auto;*/
            min-height: 100%;
            width: auto;
            min-width: 100%;
        }

        input, img {
            vertical-align: middle;
        }

        .divbox {
            display: inline;
            width: 600px;
            vertical-align: middle;
            height: 30px;
            position: absolute;
            left: 50%;
            top: 50%;
            margin-left: -300px;
            margin-top: -20px;
        }

        .ltop {
            background-color: #bbc1ca;
            height: 30px;
            text-align: left;
        }

        #win {
            POSITION: absolute;
            left: 50%;
            top: 250px;
            width: 310px;
            height: 275px;
            margin-left: -160px;
            /*margin-top:200px;*/
            border: 0px solid #888;
            background-color: #edf;
            text-align: center;
            background: url(images/loginbg.png);
        }

        .close {
            height: 25px;
            width: 25px;
            float: right;
            margin-right: 20px;
            background: url(images/close.png);
            margin-top: 30px;
        }

        .txt {
            border-style: none;
            border-color: currentColor;
            border-width: 0px;
            outline-width: 0px;
            outline-style: none;
            outline-color: invert;
        }

            .txt:focus {
                outline: none;
            }

        .title {
            padding-top: 150px;
            width: auto;
        }

        .gdtitle {
            float: right;
            background: url(images/title.png) no-repeat;
            height: 94px;
            width: 561px;
        }

        .mtitle {
            height: 89px;
            float: right;
            width: auto;
            text-align: right;
            padding-top: 5px;
            color:#1369C0;
            font-weight: bold;
        }

        .add {
            font-size: 50px; 
            line-height: 58px;
        }

        .addpy {
            font-size: 25px;            
        }

        #mymenu {
            margin-top: 60px;
            width: 1100px;
        }

        .imgbtn {
            margin-top: 30px;
            margin-bottom: 30px;
            margin-left: 10px;
            margin-right: 10px;
        }

        #myfoot {
            height: 39px;
            line-height: 39px;
            position: fixed;
            bottom: 20px;
            left: 0px;
            width: 100%;
            _position: absolute;
        }
    </style>
    <script language="javascript">
        function CheckForm() {
            if ($('#txtName').val() == "") {
                alert("请输入用户名！");
                document.Login.yhm.focus();
                return false;
            }
            if ($('#txtName').val() == "用户名") {
                alert("请输入用户名！");
                return false;
            }
            if ($('#txtPwd').val() == "") {
                alert("请输入密码！");
                document.Login.mima.focus();
                return false;
            }
            if ($('#txtPwd').val() == "密码") {
                alert("请输入密码！");
                return false;
            }
            if ($('#txtCode').val() == "") {
                alert("请输入您的验证码！");
                return (false);
            }
            if ($('#txtCode').val() == "验证码") {
                alert("请输入您的验证码！");
                return (false);
            }
        }
        function changetxtf(s, t, c) {
            if ($(s).val() == t) {
                $(s).val("");
                $(s).attr("class", c);
            }
        }
        function changetxtb(s, t, c) {
            if ($(s).val() == "") {
                $(s).val(t);
                $(s).attr("class", c);
            }
        }
        $(function () {
            $("#title").width($("#mtitle").width() + 580);
            //$("#cwin").click(function () {

            //    $("#win").fadeOut("slow");//淡入淡出效果 隐藏div

            //})

        });
    </script>
</head>
<body>
    <form id="form1" runat="server" defaultbutton="img1">

        <div align="center" class="bg">
            <div id="title" class="title">
                <div class="gdtitle">
                </div>
                <div id="mtitle" class="mtitle">
                    <asp:Label ID="lbladd" CssClass="add" runat="server" Text=""></asp:Label><br />
                    <asp:Label ID="lblpy" CssClass="addpy" runat="server" Text=""></asp:Label>
                </div>
                <div style="clear: both"></div>
            </div>
            <div id="mymenu">
                <asp:ImageButton ID="ImageButton1" CssClass="imgbtn" runat="server" ImageUrl="~/Images/zdcqjk.png" OnClick="ImageButton_Click" CommandName="1" Visible="False" />
                <asp:ImageButton ID="ImageButton2" CssClass="imgbtn" runat="server" ImageUrl="~/Images/stshjk.png" OnClick="ImageButton_Click" CommandName="2" Visible="False" />
                <asp:ImageButton ID="ImageButton3" CssClass="imgbtn" runat="server" ImageUrl="~/Images/zqyjjcxt.png" OnClick="ImageButton_Click" CommandName="3" Visible="False" />
                <asp:ImageButton ID="ImageButton4" CssClass="imgbtn" runat="server" ImageUrl="~/Images/trsqjcxt.png" OnClick="ImageButton_Click" CommandName="4" Visible="False" />
                <asp:ImageButton ID="ImageButton5" CssClass="imgbtn" runat="server" ImageUrl="~/Images/yjxxfbxt.png" OnClick="ImageButton_Click" CommandName="5" Visible="False" />
                <asp:ImageButton ID="ImageButton6" CssClass="imgbtn" runat="server" ImageUrl="~/Images/sbwxjcxt.png" OnClick="ImageButton_Click" CommandName="6" Visible="False" />
                <asp:ImageButton ID="ImageButton7" CssClass="imgbtn" runat="server" ImageUrl="~/Images/zhxxfwpt.png" OnClick="ImageButton_Click" CommandName="7" Visible="False" />
            </div>
            <div id="myfoot">
                <uc1:copyright runat="server" ID="copyright" />
            </div>
        </div>
        <div id="win">
           <%-- <div id="cwin" class="close"></div>--%>
            <div style="margin-top: 98px; padding-left: 33px; text-align: left; height: 30px;">
                <asp:TextBox ID="txtName" CssClass="txt" runat="server" Text="用户名" onfocus="changetxtf(this,'用户名','txt1')" onblur="changetxtb(this,'用户名','txt')" Width="230px"></asp:TextBox>

            </div>
            <div style="margin-top: 26px; padding-left: 33px; text-align: left; height: 30px;">
                <asp:TextBox ID="txtPwd" CssClass="txt" runat="server" Text="密码" onfocus="changetxtf(this,'密码','txt1')" onblur="changetxtb(this,'密码','txt')" TextMode="Password" Width="230px"></asp:TextBox>
            </div>
            <div style="margin-top: 20px; text-align: center;">
                <asp:CheckBox runat="server" ID="chkpwd" name="jzmm" value="1" Text="记住密码" /><asp:ImageButton src="/images/login.png" ID="img1" runat="server" OnClick="btnLogin_Click" />
            </div>

        </div>


    </form>
</body>
</html>
